<{include file="header.html"}>
<link href="themes/css/detection.css" rel="stylesheet" type="text/css" media="screen">
<script language="javascript" type="text/javascript" src="themes/js/SetTableBgColor.js"></script>
<div id ="d_sidebar">
	<div class="d_title">
		<h2><a href ="#">历史记录</a></h2>
	</div>
	<div class = "d_title">
		<span>按月查看</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href ="<{spUrl c=Alarms a=limit_alarm btime=$tmonth|date_format:'%Y-%m-01' atime=$tmonth|date_format:'%Y-%m-%d'}>"><span><{$tmonth|date_format:'%Y-%m'}></span></a><br>
		&nbsp;&nbsp;&nbsp;<a href = "<{spUrl c=Alarms a=limit_alarm btime=$nmonth|date_format:'%Y-%m-%d' atime=$nmonth|date_format:'%Y-%m-30'}>"><span><{$nmonth|date_format:'%Y-%m'}></span></a><br>
		&nbsp;&nbsp;&nbsp;<a href = "<{spUrl c=Alarms a=limit_alarm btime=$cmonth|date_format:'%Y-%m-%d' atime=$cmonth|date_format:'%Y-%m-30'}>"><span><{$cmonth|date_format:'%Y-%m'}></span></a><br>
	<div class = "d_title">
		<span>故障管理</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href ="#"><span>故障历史</span></a><br>
	<div class = "d_title">
		<span>告警通知设置</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href = "#"><span>站点监控</span></a><br>
</div>

<div id = "d_container">
<h2>电信记录</h2>
<!--开始循环页码，同时如果循环到当前页则不显示链接-->
<table width="900" border="0" id="table1">
<{foreach from=$results item=thepage}>
	<{if $thepage != $pager.current_page}>
			<tr height="20">
				<td width="200">检测时间:<{$thepage.addtime|date_format:'%Y-%m-%d %H:%M:%S'}></td>				
				<td width="100">状态:<{if $thepage.status_codee == "200"}>正常<{else}>故障<{/if}></td>
				<td width="200">IP：<{$thepage.site_ip}></td>				
				
			</tr>
	<{else}>
		<b><{$thepage}></b>
		检测时间：<{$thepage.addtime|date_format:'%Y-%m-%d %H:%M:%S'}>
		状态：<{$thepage.status_code}>
		IP:<{$thepage.site_ip}>
	<{/if}>
<{/foreach}>
</table>
<br>
<{if $pager}>
共有记录<{$pager.total_count}>条，共有<{$pager.total_page}>页（每页<{$pager.page_size}>条记录）：
<!--在当前页不是第一页的时候，显示前页和上一页-->
<{if $pager.current_page != $pager.first_page}>
<a href="<{spUrl c=main a=record page=$pager.first_page siteid=$siteid}>">前页</a> | 
<a href="<{spUrl c=main a=record page=$pager.prev_page siteid=$siteid}>">上一页</a> | 
<{/if}>
<!--在当前页不是最后一页的时候，显示下一页和后页-->
<{if $pager.current_page != $pager.last_page}> | 
<a href="<{spUrl c=main a=record page=$pager.next_page siteid=$siteid}>">下一页</a> | 
<a href="<{spUrl c=main a=record page=$pager.last_page siteid=$siteid}>">后页</a>
<{/if}>
<{/if}>
<br><br>
<h2>网通记录</h2>
<!--开始循环页码，同时如果循环到当前页则不显示链接-->
<table width="900" border="0" id="table2">
<{foreach from=$dresults item=thepage}>
	<{if $thepage != $pager.current_page}>
			<tr height="20">
				<td width="200">检测时间:<{$thepage.addtime|date_format:'%Y-%m-%d %H:%M:%S'}></td>				
				<td width="100">状态:<{if $thepage.status_codee == "200"}>正常<{else}>故障<{/if}></td>
				<td width="200">IP：<{$thepage.site_ip}></td>
			</tr>
	<{else}>
		<b><{$thepage}></b>
		检测时间：<{$thepage.addtime|date_format:'%Y-%m-%d %H:%M:%S'}>
		状态：<{$thepage.status_code}>
		IP:<{$thepage.site_ip}>
	<{/if}>
<{/foreach}>
</table>
<br>
<{if $dpager}>
共有记录<{$dpager.total_count}>条，共有<{$dpager.total_page}>页（每页<{$dpager.page_size}>条记录）：
<!--在当前页不是第一页的时候，显示前页和上一页-->
<{if $dpager.current_page != $dpager.first_page}>
<a href="<{spUrl c=main a=record dpage=$pager.first_page siteid=$siteid}>">前页</a> | 
<a href="<{spUrl c=main a=record dpage=$pager.prev_page siteid=$siteid}>">上一页</a> | 
<{/if}>
<!--在当前页不是最后一页的时候，显示下一页和后页-->
<{if $dpager.current_page != $dpager.last_page}> | 
<a href="<{spUrl c=main a=record dpage=$pager.next_page siteid=$siteid}>">下一页</a> | 
<a href="<{spUrl c=main a=record dpage=$pager.last_page siteid=$siteid}>">后页</a>
<{/if}>
<{/if}>

</div>
<div class = "clear"></div>

<script type="text/javascript">


$(function(){ 

	//自定义类，给定值； 
	$("#table1").SetTableBgColor({ 
	odd:"odd1", 
	even:"even1", 
	selected:"mselected" 
	}).find("th").css("font-size","18"); 
	}) 

$(function(){ 

	//自定义类，给定值； 
	$("#table2").SetTableBgColor({ 
	odd:"odd1", 
	even:"even1", 
	selected:"mselected" 
	}).find("th").css("font-size","18"); 
	}) 
</script>
<{include file="footer.html"}>